package org.karelun.gef.actions;

import org.eclipse.ui.IWorkbenchPart;
import org.karelun.gef.model.BaseClassModel;
import org.karelun.gef.model.MethodModel;

public class CreateMethodAction extends AbstractAddAttributeAction{
	
	
	public CreateMethodAction(IWorkbenchPart part) {
		super(part);
	}

	protected void init() {
		super.init();
		setId(EditorActionFactory.ADDMETHOD.getId());
		setEnabled(true);
	}

	@Override
	protected BaseClassModel createAttrModel() {
		return new MethodModel();
	}
}
